package cn.topcodes.tcsf.cms.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * TCmsArticleComment表单
 * @author Yvan
 * @date 2018-02-06 16:44:43
 */
@Data
public class ArticleCommentForm implements Idable {
	
	private Long id;

	@NotNull(message = "评论不能为空")
	@Length(min = 0,max = 1000,message = "评论长度为0~1000个字符")
	private String comment;
	
	@NotNull(message = "评论人不能为空")
	@Length(min = 0,max = 100,message = "评论人长度为0~100个字符")
	private String author;
	
	private Long articleId;
	

}